|
|
@@ -4,6 +4,8 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.uas.console.donate.model.Org;
|
|
|
import com.uas.console.donate.service.OrgService;
|
|
|
import com.uas.dfs.service.FileClient;
|
|
|
+import org.apache.log4j.LogManager;
|
|
|
+import org.apache.log4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
@@ -21,7 +23,8 @@ import java.util.List;
|
|
|
@RequestMapping("/org")
|
|
|
public class OrgController {
|
|
|
|
|
|
- private static final SimpleDateFormat codesdf=new SimpleDateFormat("yyyymmddhhmmsssss");
|
|
|
+ private final Logger logger= LogManager.getLogger(getClass());
|
|
|
+
|
|
|
|
|
|
@Autowired
|
|
|
private OrgService orgService;
|
|
|
@@ -127,11 +130,7 @@ public class OrgController {
|
|
|
String file7=fileClient.upload(certify.getBytes(),certify.getSize(),"jpg",null);
|
|
|
org.setCertify(file7);
|
|
|
}
|
|
|
- Date date=new Date();
|
|
|
- //设置机构提交时间
|
|
|
- org.setSubmitTime(new SimpleDateFormat("yyyy.MM.dd HH:mm").format(date));
|
|
|
- //设置机构编号
|
|
|
- org.setCode(codesdf.format(date));
|
|
|
+
|
|
|
return orgService.sumbit(org);
|
|
|
}
|
|
|
|