Commit 14a1039c authored by wanglong's avatar wanglong

解决修改添加材料报错问题

parent 4dc26299
...@@ -161,7 +161,7 @@ public class MaterialController extends BaseController { ...@@ -161,7 +161,7 @@ public class MaterialController extends BaseController {
* *
* @return * @return
*/ */
@TycloudOperation(ApiLevel = UserType.AGENCY,needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY)
@PostMapping (value = "/saveIM") @PostMapping (value = "/saveIM")
@ApiOperation(httpMethod = "POST", value = "新增材料+附件", notes = "新增材料+附件") @ApiOperation(httpMethod = "POST", value = "新增材料+附件", notes = "新增材料+附件")
public ResponseModel<MaterialDto> saveMaterial(@RequestBody JSONObject object) { public ResponseModel<MaterialDto> saveMaterial(@RequestBody JSONObject object) {
......
...@@ -14,6 +14,7 @@ import com.yeejoin.amos.boot.module.ugp.api.entity.Material; ...@@ -14,6 +14,7 @@ import com.yeejoin.amos.boot.module.ugp.api.entity.Material;
import com.yeejoin.amos.boot.module.ugp.api.mapper.AttachmentMapper; import com.yeejoin.amos.boot.module.ugp.api.mapper.AttachmentMapper;
import com.yeejoin.amos.boot.module.ugp.api.mapper.MaterialMapper; import com.yeejoin.amos.boot.module.ugp.api.mapper.MaterialMapper;
import com.yeejoin.amos.boot.module.ugp.api.service.IMaterialService; import com.yeejoin.amos.boot.module.ugp.api.service.IMaterialService;
import com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil; import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
...@@ -77,6 +78,7 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate ...@@ -77,6 +78,7 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate
* 新增材料 * 新增材料
*/ */
@Override @Override
@BusinessIdentify
public MaterialDto saveMaterial(JSONObject jsonObject){ public MaterialDto saveMaterial(JSONObject jsonObject){
MaterialDto materialDto = new MaterialDto(); MaterialDto materialDto = new MaterialDto();
materialDto.setRecDate(new Date()); materialDto.setRecDate(new Date());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment