@ -144,7 +144,7 @@ public class ScmVehInventoryreportService extends MybatisBaseService<ScmVehInven
SysUserVo sysUserVo = sysUserFeign . fetchBySid ( dto . getUserSid ( ) ) . getData ( ) ;
ScmVehInventoryreport scmVehInventoryreport = new ScmVehInventoryreport ( ) ;
BeanUtil . copyProperties ( dto , scmVehInventoryreport , "sid" ) ;
AppScmVehInventorymonthInfoVo data = scmVehInventorymonthService . getCarInventoryReport ( dto . getMainSid ( ) ) . getData ( ) ;
AppScmVehInventorymonthInfoVo data = scmVehInventorymonthService . getCarInventoryReport ( dto . getMainSid ( ) , dto . getUserSid ( ) ) . getData ( ) ;
scmVehInventoryreport . setReportContent ( data . getProfitRemarks ( ) + data . getLossRemarks ( ) + data . getDamageRemarks ( ) ) ;
scmVehInventorymonthService . updateByMainSid ( dto . getMainSid ( ) ) ;
List < RecipientListDto > recipientList = dto . getRecipientList ( ) ;
@ -156,6 +156,7 @@ public class ScmVehInventoryreportService extends MybatisBaseService<ScmVehInven
}
scmVehInventoryreport . setReceiverNames ( receiverNames . substring ( 0 , receiverNames . length ( ) - 1 ) ) ;
scmVehInventoryreport . setReceiverSids ( receiverSids . substring ( 0 , receiverSids . length ( ) - 1 ) ) ;
scmVehInventoryreport . setCreateBySid ( dto . getUserSid ( ) ) ;
save ( scmVehInventoryreport ) ;
List < String > receiveIdList = new ArrayList < > ( ) ;
for ( RecipientListDto recipientListDto : recipientList ) {
@ -241,7 +242,7 @@ public class ScmVehInventoryreportService extends MybatisBaseService<ScmVehInven
System . out . println ( "process end" ) ;
}
public List < RecipientListVo > selectByMainSid ( ) {
return baseMapper . selectByMainSid ( ) ;
public List < RecipientListVo > selectByMainSid ( String userSid ) {
return baseMapper . selectByMainSid ( userSid ) ;
}
}