Compare commits

...

2 Commits

Author SHA1 Message Date
liang.chao 9b4d6ab400 Merge remote-tracking branch 'origin/dev-nwcc' into dev-nwcc 2024-07-26 15:14:14 +08:00
liang.chao 00b9d01241 日期格式转换 2024-07-26 15:14:07 +08:00
3 changed files with 6 additions and 1 deletions

View File

@ -54,9 +54,13 @@ public class DataReceiveDetail {
private String checkUnit; private String checkUnit;
@ApiModelProperty(value = "检验日期") @ApiModelProperty(value = "检验日期")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date checkDate; private Date checkDate;
@ApiModelProperty(value = "下次检验日期") @ApiModelProperty(value = "下次检验日期")
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date nextCheckDate; private Date nextCheckDate;
@ApiModelProperty(value = "机手姓名") @ApiModelProperty(value = "机手姓名")

View File

@ -21,6 +21,7 @@ public class MaReceiveServiceImpl implements MaReceiveService {
private MaReceiveMapper maReceiveMapper; private MaReceiveMapper maReceiveMapper;
@Override @Override
@Transactional
public int saveDataReceiveInfo(DataReceiveInfo dataReceiveInfo) { public int saveDataReceiveInfo(DataReceiveInfo dataReceiveInfo) {
maReceiveMapper.saveDataReceiveInfo(dataReceiveInfo); maReceiveMapper.saveDataReceiveInfo(dataReceiveInfo);
if (dataReceiveInfo.getId() != null) { if (dataReceiveInfo.getId() != null) {

View File

@ -9,7 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
values(#{pushNum},now()) values(#{pushNum},now())
</insert> </insert>
<insert id="saveDataReceiveDetails"> <insert id="saveDataReceiveDetails">
insert into data_receive_detail(receiveId,check_code,check_unit,check_date,is_new,ma_id,ma_user_name,next_check_date,out_factory_time,rent_price,rent_time,supplier,type_id,unit_id) insert into data_receive_detail(receive_id,check_code,check_unit,check_date,is_new,ma_id,ma_user_name,next_check_date,out_factory_time,rent_price,rent_time,supplier,type_id,unit_id)
values(#{receiveId},#{checkCode},#{checkUnit},#{checkDate},#{isNew},#{maId},#{maUserName},#{nextCheckDate},#{outFactoryTime},#{rentPrice},#{rentTime},#{supplier},#{typeId},#{unitId}) values(#{receiveId},#{checkCode},#{checkUnit},#{checkDate},#{isNew},#{maId},#{maUserName},#{nextCheckDate},#{outFactoryTime},#{rentPrice},#{rentTime},#{supplier},#{typeId},#{unitId})
</insert> </insert>
<select id="getDataReceive" resultType="com.bonus.sgzb.base.domain.DataReceiveInfo"> <select id="getDataReceive" resultType="com.bonus.sgzb.base.domain.DataReceiveInfo">