|
@@ -163,16 +163,14 @@ public class TSubmittedController extends BaseRESTfulController {
|
|
|
String mouth = Signtime.substring(5, 7);
|
|
|
Integer maxid = tSubmittedService.MaxID(mouth);
|
|
|
model.setMaxid(new BigDecimal(maxid));
|
|
|
- String id = model.getDeclareid() + maxid;
|
|
|
- model.setConstruid(id);
|
|
|
- String datetime = DateUtils.getCurrentTime("yyyy-MM-dd");
|
|
|
|
|
|
+ String datetime = DateUtils.getCurrentTime("yyyy-MM-dd");
|
|
|
if (model == null) {
|
|
|
return failed(null, "参数错误!");
|
|
|
}
|
|
|
TSubmitted tSubmitted = new TSubmitted();
|
|
|
String bid = model.getConstruid();
|
|
|
- model.setDeclareid(model.getDeclareid()+ "_"+ String.format("%04d", maxid));
|
|
|
+ model.setConstruid(model.getDeclareid()+ "_"+ String.format("%04d", maxid));
|
|
|
tSubmitted= tSubmittedService.add(model);
|
|
|
String filesid = "";
|
|
|
if (file!=null){
|