|
@@ -70,7 +70,7 @@ public class FamilyPeopleService {
|
|
* @param idcard
|
|
* @param idcard
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public FamilyPeople addMyPeople(String uid, String name, String phone, String idcard, Integer sex){
|
|
|
|
|
|
+ public FamilyPeople addMyPeople(String uid, String name, String phone, String idcard, Integer sex, String birth){
|
|
FamilyPeople p = new FamilyPeople();
|
|
FamilyPeople p = new FamilyPeople();
|
|
p.setCtime(ToolsUtil.getNow());
|
|
p.setCtime(ToolsUtil.getNow());
|
|
p.setIdcard(idcard);
|
|
p.setIdcard(idcard);
|
|
@@ -79,7 +79,7 @@ public class FamilyPeopleService {
|
|
p.setUid(uid);
|
|
p.setUid(uid);
|
|
p.setSex(sex);
|
|
p.setSex(sex);
|
|
p.setAddress("");
|
|
p.setAddress("");
|
|
- p.setBirth("");
|
|
|
|
|
|
+ p.setBirth(birth);
|
|
p.setIsDel(0);
|
|
p.setIsDel(0);
|
|
familyPeopleMapper.addMyPeople(p);
|
|
familyPeopleMapper.addMyPeople(p);
|
|
return p;
|
|
return p;
|
|
@@ -94,7 +94,7 @@ public class FamilyPeopleService {
|
|
* @param idcard
|
|
* @param idcard
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public FamilyPeople updateMyPeople(String uid, Integer id, String name, String phone, String idcard, Integer sex){
|
|
|
|
|
|
+ public FamilyPeople updateMyPeople(String uid, Integer id, String name, String phone, String idcard, Integer sex, String birth){
|
|
FamilyPeople people = this.queryMyPeople(id);
|
|
FamilyPeople people = this.queryMyPeople(id);
|
|
if (people == null){
|
|
if (people == null){
|
|
throw new ZSKKException(ErrorConstant.PARAM_ERROR);
|
|
throw new ZSKKException(ErrorConstant.PARAM_ERROR);
|
|
@@ -106,6 +106,7 @@ public class FamilyPeopleService {
|
|
people.setPhone(phone);
|
|
people.setPhone(phone);
|
|
people.setIdcard(idcard);
|
|
people.setIdcard(idcard);
|
|
people.setSex(sex);
|
|
people.setSex(sex);
|
|
|
|
+ people.setBirth(birth);
|
|
familyPeopleMapper.updateMyPeople(people);
|
|
familyPeopleMapper.updateMyPeople(people);
|
|
return people;
|
|
return people;
|
|
}
|
|
}
|
|
@@ -138,12 +139,11 @@ public class FamilyPeopleService {
|
|
*/
|
|
*/
|
|
@Transactional
|
|
@Transactional
|
|
public void addAppointment(UserBean userBean, FamilyPeople people, BuyOrder order, BuyOrderItem item, String atime, String extend){
|
|
public void addAppointment(UserBean userBean, FamilyPeople people, BuyOrder order, BuyOrderItem item, String atime, String extend){
|
|
-
|
|
|
|
//维护家人
|
|
//维护家人
|
|
if (people.getId().equals(0)){
|
|
if (people.getId().equals(0)){
|
|
- people = addMyPeople(userBean.getUserid(), people.getName(), people.getPhone(), people.getIdcard(), people.getSex());
|
|
|
|
|
|
+ people = addMyPeople(userBean.getUserid(), people.getName(), people.getPhone(), people.getIdcard(), people.getSex(), people.getBirth());
|
|
}else{
|
|
}else{
|
|
- updateMyPeople(userBean.getUserid(), people.getId(), people.getName(), people.getPhone(), people.getIdcard(), people.getSex());
|
|
|
|
|
|
+ updateMyPeople(userBean.getUserid(), people.getId(), people.getName(), people.getPhone(), people.getIdcard(), people.getSex(),people.getBirth());
|
|
}
|
|
}
|
|
|
|
|
|
Appointment appointment = new Appointment();
|
|
Appointment appointment = new Appointment();
|
|
@@ -211,6 +211,22 @@ public class FamilyPeopleService {
|
|
public void updateAppointmentStatus(String tjid, Integer status, String reportUrl){
|
|
public void updateAppointmentStatus(String tjid, Integer status, String reportUrl){
|
|
familyPeopleMapper.updateAppointmentStatus(tjid, status, reportUrl);
|
|
familyPeopleMapper.updateAppointmentStatus(tjid, status, reportUrl);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 设置状态
|
|
|
|
+ * @param id
|
|
|
|
+ * @param status
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public int setItemRefund(BuyOrderItem item, Integer status){
|
|
|
|
+ Appointment bean = familyPeopleMapper.queryAppointmentByItemid(item.getId());
|
|
|
|
+ if (bean != null){
|
|
|
|
+ bean.setTjstatus(status);
|
|
|
|
+ return familyPeopleMapper.setAppointmentStatus(bean);
|
|
|
|
+ }else{
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
public List<Long> queryCompletedBids(String uid){
|
|
public List<Long> queryCompletedBids(String uid){
|
|
return familyPeopleMapper.queryCompletedBids(uid);
|
|
return familyPeopleMapper.queryCompletedBids(uid);
|