Commit 12e7028a authored by shiyu's avatar shiyu

理由为空判断

parent 9cef8a53
......@@ -11,6 +11,7 @@ import com.wwdz.ch.db.dto.request.ConsignSaleRequestDto;
import com.wwdz.ch.db.mapper.ConsignSaleMapper;
import com.wwdz.ch.db.mapper.ConsignSaleRecordMapper;
import com.xxdxxs.db.component.JdbcHelper;
import com.xxdxxs.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
......@@ -36,7 +37,9 @@ public class ConsignSaleRecordDaoImpl implements ConsignSaleRecordDao {
cancelConsignSaleRecord.setCreateTime(new Date());
cancelConsignSaleRecord.setContent(content);
cancelConsignSaleRecord.setType(type);
cancelConsignSaleRecord.setRemark(remark);
if (StringUtils.hasLength(remark)) {
cancelConsignSaleRecord.setRemark(remark);
}
return consignSaleRecordMapper.insertSelective(cancelConsignSaleRecord);
}
......
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