|
|
|
@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.gaotao.common.constant.SysMsgConstant; |
|
|
|
import com.gaotao.common.utils.GenDate; |
|
|
|
import com.gaotao.modules.app.entity.UserEntity; |
|
|
|
import com.gaotao.modules.factory.entity.Site; |
|
|
|
import com.gaotao.modules.factory.service.SiteService; |
|
|
|
import com.gaotao.modules.label.entity.LabelFormatUserDefault; |
|
|
|
@ -170,7 +169,9 @@ public class PrintLabelRecordServiceImpl extends ServiceImpl<PrintLabelRecordMap |
|
|
|
printLabelRecord.setBoxNo(buNoDate+String.format("%0"+boxNum+"d", boxNoSerial)); |
|
|
|
LocalDate localDate = LocalDate.of(printLabelRecord.getManufacturerTime().getYear() + 1900, |
|
|
|
printLabelRecord.getManufacturerTime().getMonth()+1,printLabelRecord.getManufacturerTime().getDate()); |
|
|
|
printLabelRecord.setManufacturerDate(GenDate.dateToJuLian(localDate,str)); |
|
|
|
printLabelRecord.setManufacturerDate( |
|
|
|
"Alpha/Hard Tag-No Serials".equalsIgnoreCase(printLabelRecord.getCategory())|| "Alpha/Hard Tag-Serials".equalsIgnoreCase(printLabelRecord.getCategory())? |
|
|
|
GenDate.formatDate(localDate,"MM/dd/yyyy") : GenDate.dateToJuLian(localDate,str)); |
|
|
|
// printLabelRecord.setManufacturerDate(GenDate.dateToJuLian(localDate,manufacturer.getManufacturerCode())); |
|
|
|
PrintLabelRecord target = new PrintLabelRecord(); |
|
|
|
BeanUtils.copyProperties(printLabelRecord,target); |
|
|
|
|