|
|
@ -10,6 +10,7 @@ import java.io.UnsupportedEncodingException; |
|
|
|
import java.net.URLDecoder; |
|
|
|
import java.net.URLDecoder; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
|
|
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
import org.jeecg.common.util.oConvertUtils; |
|
|
|
import org.jeecg.common.util.oConvertUtils; |
|
|
@ -93,7 +94,6 @@ public class ZyClothsStyleController extends JeecgController<ZyClothsStyle, IZyC |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* |
|
|
|
|
|
|
|
* @return |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@AutoLog(value = "服装款式表-查询所有") |
|
|
|
@AutoLog(value = "服装款式表-查询所有") |
|
|
@ -114,6 +114,7 @@ public class ZyClothsStyleController extends JeecgController<ZyClothsStyle, IZyC |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 制衣部件 |
|
|
|
* 制衣部件 |
|
|
|
|
|
|
|
* |
|
|
|
* @return |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@AutoLog(value = "服装款式表-制衣部件查询所有") |
|
|
|
@AutoLog(value = "服装款式表-制衣部件查询所有") |
|
|
@ -146,6 +147,7 @@ public class ZyClothsStyleController extends JeecgController<ZyClothsStyle, IZyC |
|
|
|
return Result.OK(list); |
|
|
|
return Result.OK(list); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 添加 |
|
|
|
* 添加 |
|
|
|
* |
|
|
|
* |
|
|
@ -156,6 +158,8 @@ public class ZyClothsStyleController extends JeecgController<ZyClothsStyle, IZyC |
|
|
|
@ApiOperation(value = "服装款式表-添加", notes = "服装款式表-添加") |
|
|
|
@ApiOperation(value = "服装款式表-添加", notes = "服装款式表-添加") |
|
|
|
@PostMapping(value = "/add") |
|
|
|
@PostMapping(value = "/add") |
|
|
|
public Result<?> add(@RequestBody ZyClothsStyle zyClothsStyle) { |
|
|
|
public Result<?> add(@RequestBody ZyClothsStyle zyClothsStyle) { |
|
|
|
|
|
|
|
//生成编号 类型编号(10位)+顺序号(8位)在service层处理
|
|
|
|
|
|
|
|
zyClothsStyle.setNums(zyClothsStyleService.generateNumber(zyClothsStyle)); |
|
|
|
zyClothsStyleService.save(zyClothsStyle); |
|
|
|
zyClothsStyleService.save(zyClothsStyle); |
|
|
|
return Result.OK("添加成功!"); |
|
|
|
return Result.OK("添加成功!"); |
|
|
|
} |
|
|
|
} |
|
|
|