提交 3ae56f63 作者: zhangqiliang

退货管理接口中加上申请表字段

父级 15f55030
...@@ -19,6 +19,7 @@ import com.starcharge.wios.vo.RejectCheckVo; ...@@ -19,6 +19,7 @@ import com.starcharge.wios.vo.RejectCheckVo;
import com.starcharge.wios.vo.RejectExcelVo; import com.starcharge.wios.vo.RejectExcelVo;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import lombok.var; import lombok.var;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
...@@ -40,6 +41,7 @@ import java.util.List; ...@@ -40,6 +41,7 @@ import java.util.List;
@RestController @RestController
@RequestMapping("api/reject") @RequestMapping("api/reject")
@Api(tags = "退货管理接口") @Api(tags = "退货管理接口")
@Slf4j
public class RejectController { public class RejectController {
@Autowired @Autowired
private TokenService tokenService; private TokenService tokenService;
......
...@@ -206,6 +206,13 @@ public class Reject extends PageVo implements Serializable { ...@@ -206,6 +206,13 @@ public class Reject extends PageVo implements Serializable {
*/ */
@ApiModelProperty(value = "审核意见") @ApiModelProperty(value = "审核意见")
private String checkSuggestion; private String checkSuggestion;
/**
* 申请表
*
* @mbg.generated
*/
@ApiModelProperty(value = "申请表")
private String remarks;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<result column="CREATED_TIME" jdbcType="TIMESTAMP" property="createdTime" /> <result column="CREATED_TIME" jdbcType="TIMESTAMP" property="createdTime" />
<result column="UPDATED_BY" jdbcType="VARCHAR" property="updatedBy" /> <result column="UPDATED_BY" jdbcType="VARCHAR" property="updatedBy" />
<result column="UPDATED_TIME" jdbcType="TIMESTAMP" property="updatedTime" /> <result column="UPDATED_TIME" jdbcType="TIMESTAMP" property="updatedTime" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
...@@ -89,7 +90,7 @@ ...@@ -89,7 +90,7 @@
id, reject_order, install_order, product_batch, quantity, material_category, material_code, id, reject_order, install_order, product_batch, quantity, material_category, material_code,
material_name, material_company, logistic_order, logistic_company, warehouse_name, material_name, material_company, logistic_order, logistic_company, warehouse_name,
warehouse_id, reason, status, check_time, check_user, check_user_name, check_suggestion, warehouse_id, reason, status, check_time, check_user, check_user_name, check_suggestion,
isproduct, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME isproduct, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME,remarks
</sql> </sql>
<select id="selectRejectList" parameterType="com.starcharge.wios.dao.entity.Reject" resultMap="BaseResultMap"> <select id="selectRejectList" parameterType="com.starcharge.wios.dao.entity.Reject" resultMap="BaseResultMap">
...@@ -164,7 +165,7 @@ ...@@ -164,7 +165,7 @@
reason, status, check_time, reason, status, check_time,
check_user, check_user_name, check_suggestion, check_user, check_user_name, check_suggestion,
isproduct, CREATED_BY, CREATED_TIME, isproduct, CREATED_BY, CREATED_TIME,
UPDATED_BY, UPDATED_TIME) UPDATED_BY, UPDATED_TIME,remarks)
values (#{rejectOrder,jdbcType=VARCHAR}, #{installOrder,jdbcType=VARCHAR}, #{productBatch,jdbcType=VARCHAR}, values (#{rejectOrder,jdbcType=VARCHAR}, #{installOrder,jdbcType=VARCHAR}, #{productBatch,jdbcType=VARCHAR},
#{quantity,jdbcType=INTEGER}, #{materialCategory,jdbcType=VARCHAR}, #{materialCode,jdbcType=VARCHAR}, #{quantity,jdbcType=INTEGER}, #{materialCategory,jdbcType=VARCHAR}, #{materialCode,jdbcType=VARCHAR},
#{materialName,jdbcType=VARCHAR}, #{materialCompany,jdbcType=VARCHAR}, #{logisticOrder,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, #{materialCompany,jdbcType=VARCHAR}, #{logisticOrder,jdbcType=VARCHAR},
...@@ -172,7 +173,7 @@ ...@@ -172,7 +173,7 @@
#{reason,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{checkTime,jdbcType=TIMESTAMP}, #{reason,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{checkTime,jdbcType=TIMESTAMP},
#{checkUser,jdbcType=VARCHAR}, #{checkUserName,jdbcType=VARCHAR}, #{checkSuggestion,jdbcType=VARCHAR}, #{checkUser,jdbcType=VARCHAR}, #{checkUserName,jdbcType=VARCHAR}, #{checkSuggestion,jdbcType=VARCHAR},
#{isproduct,jdbcType=INTEGER}, #{createdBy,jdbcType=VARCHAR}, #{createdTime,jdbcType=TIMESTAMP}, #{isproduct,jdbcType=INTEGER}, #{createdBy,jdbcType=VARCHAR}, #{createdTime,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=VARCHAR}, #{updatedTime,jdbcType=TIMESTAMP}) #{updatedBy,jdbcType=VARCHAR}, #{updatedTime,jdbcType=TIMESTAMP},#{remarks,jdbcType=VARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.starcharge.wios.dao.entity.Reject"> <insert id="insertSelective" parameterType="com.starcharge.wios.dao.entity.Reject">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
...@@ -249,6 +250,9 @@ ...@@ -249,6 +250,9 @@
<if test="updatedTime != null"> <if test="updatedTime != null">
UPDATED_TIME, UPDATED_TIME,
</if> </if>
<if test="remarks != null">
remarks,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="rejectOrder != null"> <if test="rejectOrder != null">
...@@ -320,6 +324,9 @@ ...@@ -320,6 +324,9 @@
<if test="updatedTime != null"> <if test="updatedTime != null">
#{updatedTime,jdbcType=TIMESTAMP}, #{updatedTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="remarks != null">
#{remarks,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.starcharge.wios.dao.entity.RejectCriteria" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.starcharge.wios.dao.entity.RejectCriteria" resultType="java.lang.Long">
...@@ -510,6 +517,9 @@ ...@@ -510,6 +517,9 @@
<if test="updatedTime != null"> <if test="updatedTime != null">
UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP}, UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="remarks != null">
reason = #{remarks,jdbcType=VARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
...@@ -537,7 +547,8 @@ ...@@ -537,7 +547,8 @@
CREATED_BY = #{createdBy,jdbcType=VARCHAR}, CREATED_BY = #{createdBy,jdbcType=VARCHAR},
CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP}, CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP},
UPDATED_BY = #{updatedBy,jdbcType=VARCHAR}, UPDATED_BY = #{updatedBy,jdbcType=VARCHAR},
UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP} UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP},
remarks = #{remarks,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
...@@ -157,4 +157,13 @@ public class RejectAddVo { ...@@ -157,4 +157,13 @@ public class RejectAddVo {
@NotNull(groups = CreateEntityGroup.class) @NotNull(groups = CreateEntityGroup.class)
@Range(min=0,max = 1,message = "是否产品或辅料只可填0或1",groups = {CreateEntityGroup.class,UpdateEntityGroup.class}) @Range(min=0,max = 1,message = "是否产品或辅料只可填0或1",groups = {CreateEntityGroup.class,UpdateEntityGroup.class})
private Integer isproduct; private Integer isproduct;
/**
* 申请表
*
* @mbg.generated
*/
@ApiModelProperty(value = "申请表")
@NotNull(groups = CreateEntityGroup.class)
@NotEmpty(groups = CreateEntityGroup.class)
private String remarks;
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论