prescript

This commit is contained in:
wangjinlei
2023-12-14 17:11:46 +08:00
parent a3b3c1f5f6
commit b527976180
2 changed files with 18 additions and 1 deletions

View File

@@ -71,6 +71,8 @@ public class PrescriptController {
public R editPrescript(@RequestBody PrescriptEntity p){
if(p.getImageList()!=null&&p.getImageList().size()>0){
p.setImages(JSON.toJSONString(p.getImageList()));
} else if (!p.getImages().equals("")&&(p.getImageList()==null||p.getImageList().size()==0)) {
p.setImages("");
}
prescriptService.updateById(p);
return R.ok();