|
@@ -26,6 +26,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
import java.math.BigDecimal; |
|
|
|
|
|
import java.util.ArrayList; |
|
|
import java.util.Date; |
|
|
import java.util.Date; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
|
|
@@ -59,7 +60,9 @@ public class PersonMouldServiceImpl implements PersonMouldService { |
|
|
upm.setCUserId(record.getCuserId()); |
|
|
upm.setCUserId(record.getCuserId()); |
|
|
List<Long> mouldIds = userPersonMouldMapper.findMouldIdList(upm); |
|
|
List<Long> mouldIds = userPersonMouldMapper.findMouldIdList(upm); |
|
|
if (null == mouldIds || mouldIds.size() <= 0 ) { |
|
|
if (null == mouldIds || mouldIds.size() <= 0 ) { |
|
|
record.setId(-1L); |
|
|
|
|
|
|
|
|
List<Long> pmids = new ArrayList<Long>(); |
|
|
|
|
|
pmids.add(-1L); |
|
|
|
|
|
record.setCustomPersonMouldIds(pmids); |
|
|
}else { |
|
|
}else { |
|
|
record.setCustomPersonMouldIds(mouldIds); |
|
|
record.setCustomPersonMouldIds(mouldIds); |
|
|
} |
|
|
} |
|
|